$(document).ready(function () {

    $("#login").click(function () {
        let username = $("#username").val();
        let password = $("#password").val();

        $.post("/users/login", {
            username: username,
            password: password
        }, function (res) {
            if (res=='1') {
                location.href = "/home.html";
            }
        });
    });

});